Skip to content

Fix: Save button redirects to previous page instead of Home - #150

Merged
anisharma07 merged 1 commit into
OpenVibes:mainfrom
AvaneeshKesavan:fix/save-redirect
Sep 29, 2025
Merged

Fix: Save button redirects to previous page instead of Home#150
anisharma07 merged 1 commit into
OpenVibes:mainfrom
AvaneeshKesavan:fix/save-redirect

Conversation

@AvaneeshKesavan

@AvaneeshKesavan AvaneeshKesavan commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

Fixes

Closes #109

Description

Currently, the Save button in AddCard and EditCard pages redirects users to the Home Page. This PR fixes the navigation so that after saving, users are taken back to the page they came from (e.g., the Subject page).

Files Changed

  • Updated AddCard.tsx: replaced navigation.navigate('App') with navigation.goBack().
  • Updated EditCard.tsx: replaced navigation.navigate('App') with navigation.goBack().

GSSoC Contributor

  • Yes, I am a GSSoC contributor

@AvaneeshKesavan

Copy link
Copy Markdown
Contributor Author

Following up on my pr. Please let me know if any changes are required.

@anisharma07

Copy link
Copy Markdown
Collaborator

@AvaneeshKesavan can you share a screenrecording if you ran it on mobile or emulator?

@AvaneeshKesavan

Copy link
Copy Markdown
Contributor Author
trim.94E3A524-E89B-4CC6-B62E-6FE66D605104.MOV

@anisharma07

Copy link
Copy Markdown
Collaborator

@AvaneeshKesavan Great! Thanks for contributing.

@anisharma07
anisharma07 merged commit 1a58ce2 into OpenVibes:main Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Save Card should Redirect to Subject Page

2 participants